package com.aasa.siccosap.pagonet.ws;

public class PagoNetWsSoapProxy implements com.aasa.siccosap.pagonet.ws.PagoNetWsSoap {
  private String _endpoint = null;
  private com.aasa.siccosap.pagonet.ws.PagoNetWsSoap pagoNetWsSoap = null;
  
  public PagoNetWsSoapProxy() {
    _initPagoNetWsSoapProxy();
  }
  
  public PagoNetWsSoapProxy(String endpoint) {
    _endpoint = endpoint;
    _initPagoNetWsSoapProxy();
  }
  
  private void _initPagoNetWsSoapProxy() {
    try {
      pagoNetWsSoap = (new com.aasa.siccosap.pagonet.ws.PagoNetWsLocator()).getPagoNetWsSoap();
      if (pagoNetWsSoap != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)pagoNetWsSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)pagoNetWsSoap)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (pagoNetWsSoap != null)
      ((javax.xml.rpc.Stub)pagoNetWsSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public com.aasa.siccosap.pagonet.ws.PagoNetWsSoap getPagoNetWsSoap() {
    if (pagoNetWsSoap == null)
      _initPagoNetWsSoapProxy();
    return pagoNetWsSoap;
  }
  
  public java.lang.String prepararCadena(java.lang.String cadena) throws java.rmi.RemoteException{
    if (pagoNetWsSoap == null)
      _initPagoNetWsSoapProxy();
    return pagoNetWsSoap.prepararCadena(cadena);
  }
  
  public java.lang.String calcularVerificador(java.lang.String cadena1, java.lang.String flag) throws java.rmi.RemoteException{
    if (pagoNetWsSoap == null)
      _initPagoNetWsSoapProxy();
    return pagoNetWsSoap.calcularVerificador(cadena1, flag);
  }
  
  public java.lang.String desencriptar(java.lang.String codVerRpta, java.lang.String flag) throws java.rmi.RemoteException{
    if (pagoNetWsSoap == null)
      _initPagoNetWsSoapProxy();
    return pagoNetWsSoap.desencriptar(codVerRpta, flag);
  }
  
  
}